Adding multiple escalations via incident-creation-api

I am trying to override a service escalation policy when creating an incident via the incident-creation-api. I want to include more than one escalation policy to the payload but am not sure this is supported. When trying the requests I get 201s but I do not get the expected policy notifications.

An example is:

{
  "incident": {
    "type": "incident",
    "title": "{{issue.summary}}",
    "service": {
      "id": "PNAZ6IC",
      "type": "service_reference"
    },
    "body": {
      "type": "incident_body",
      "details": "TEST TEST TEST"
    }
  },
    "escalation_policy": [
        {
          "id": "P5G3TNZ",
          "type": "escalation_policy_reference"
        },
        {
            "id": "P33H9RE",
            "type": "escalation_policy_reference"
          }
    ]
}

It seems the behavior is to use the service instead of the passed in array of escalation policies.

Is this possible? If not, is there a work around?

Try creating the incident against that service and add your EPs to the “assignments” object instead of the EP object.

1 Like

Thanks for the suggestion. I tried to add the policies as above into the an assignments array instead, but it is still only defaulting to the service default. I know I can make 2 api calls, one to create the incident, then a second to add additional responders, but if this is possible in 1 call I prefer it.